<?php header("Content-type:text/html;charset=utf-8"); ?>
<html>
<head>
<?php $this->import('title');?>
</head>
<body>
<ul>
<li><a href="admin.php?m=category&a=add">增加分类</a></li>
</ul>
<table>
<tr><th>ID</th><th>Name</th><th>操作</th></tr>
<?php foreach($this->cates as $k=>$v):?>
<tr>
<td><?php echo $v['id']?>&nbsp;</td>
<td><?php echo $v['cateName']?>&nbsp;</td>
<td><a href="admin.php?m=category&a=modify&id=<?php echo $v['id'];?>">修改</a>
&nbsp;&nbsp;
<a href="admin.php?m=category&a=delete&id=<?php echo $v['id'];?>">删除</a>
</td>
</tr>
<?php endforeach;?>

</table>
<?php echo $this->catesTree;?>
</body>
</html>